function [trainingSet testSet expectedOutputs expectedTestOuts] = getPatterns(x, y, z)

    [training test] = shufflePoints([x y z],[0.3, 0.4]);
    
    for i=1:rows(training)
        for j=1:cols(training)-1
            trainingSet(i,j) = training(i,j);
        end
        expectedOutputs(i) = training(i,cols(training));
    end

    for i=1:rows(test)
        for j=1:cols(test)-1
            testSet(i,j) = test(i,j);
        end
        expectedTestOuts(i) = test(i,cols(test));
    end
    
    expectedOutputs = expectedOutputs';
    
end